<div>
  <ul class="nav nav-tabs" role="tablist">
    <li role="presentation"><a href="#loan" aria-controls="loan" role="tab" data-toggle="tab">录入资产</a></li>
    <li role="presentation" class="active"><a href="#single" aria-controls="single" role="tab" data-toggle="tab">发散标产品</a></li>
    <li role="presentation" class="sr-only"><a href="#awt" aria-controls="awt" role="tab" data-toggle="tab">发安稳投</a></li>
    <li role="presentation" class="sr-only"><a href="#yxn" aria-controls="yxn" role="tab" data-toggle="tab">发月续牛</a></li>
    <li role="presentation"><a href="#be-code" aria-controls="be-code" role="tab" data-toggle="tab">启用BE万能验证码</a></li>
    <li role="presentation"><a href="#be-admin" aria-controls="be-admin" role="tab" data-toggle="tab">BE-Admin开启所有权限</a></li>
</ul>
  <div class="tab-content">
    <div role="tabpanel" class="tab-pane" id="loan">
        <form class="form-horizontal loan" action="/admin/plugin/product_data" method="post" accept-charset="utf-8">
            {% raw xsrf_form_html() %}
            <div class="form-group">
                <label class="col-md-2 control-label" for="loan-type1">类型</label>
                <div class="col-md-4 col-lg-2">
                    <label class="radio-inline">
                      <input type="radio" name="type" id="loan-type1" value="0" checked> 个人
                    </label>
                    <label class="radio-inline">
                      <input type="radio" name="type" id="loan-type2" value="1"> 企业
                    </label>
                </div>
            </div>
            <div class="form-group">
                <label class="col-md-2 control-label" for="loan-cg1">是否存管</label>
                <div class="col-md-4 col-lg-2">
                    <label class="radio-inline">
                      <input type="radio" name="loan_type" id="loan-cg1" value="0" checked> 存管标
                    </label>
                    <label class="radio-inline">
                      <input type="radio" name="loan_type" id="loan-cg2" value="1"> 非存管标
                    </label>
                </div>
            </div>
            <div class="form-group">
                <label class="col-md-2 control-label" for="loan-count">个数</label>
                <div class="col-md-2 col-lg-1">
                    <input id="loan-count" name="count" value="1" type="number" class="form-control"
                           placeholder="1" min="1" max="100" step="1">
                </div>
            </div>
            <div class="form-group">
                <label class="col-md-2 control-label" for="loan-amount">金额(元)</label>
                <div class="col-md-2 col-lg-1">
                    <input id="loan-amount" name="amount" value="10000" type="text" class="form-control">
                </div>
            </div>
            <div class="form-group">
                <label class="col-md-2 control-label" for="loan-term">期限</label>
                <div class="col-md-1 col-lg-1">
                    <input id="loan-term" name="term" value="12" type="text" class="form-control">
                </div>
                <div class="col-md-1 col-lg-1">
                    <select id="loan-termMode" name="termMode" class="form-control">
                      <option value="0">天</option>
                      <option value="1" selected>月</option>
                    </select>
                </div>
            </div>
            <div class="form-group">
                <label class="col-md-2 control-label" for="loan-annualRate">利率(%)</label>
                <div class="col-md-2 col-lg-1">
                    <input id="loan-annualRate" name="annualRate" value="20.00" type="text" class="form-control">
                </div>
            </div>
            <div class="form-group">
                <label class="col-md-2 control-label" for="loan-repayment">还款方式</label>
                <div class="col-md-4 col-lg-2">
                    <select id="loan-repayment" name="repayment" class="form-control">
                      <option value="0">一次性还本付息</option>
                      <option value="1">等额本息</option>
                      <option value="2">等额本金</option>
                      <option value="3">先息后本</option>
                      <option value="4">等额本息N-1</option>
                      <option value="5">等本等息</option>
                      <option value="6">月息季本</option>
                      <option value="7">贺氏等额本息</option>
                    </select>
                </div>
            </div>
            <div class="form-group">
                <label class="col-md-2 control-label" for="loan-publish1">是否推送</label>
                <div class="col-md-4 col-lg-2">
                    <label class="radio-inline">
                      <input type="radio" name="publish" id="loan-publish1" value="1" checked> 是
                    </label>
                    <label class="radio-inline">
                      <input type="radio" name="publish" id="loan-publish2" value="2"> 否
                    </label>
                </div>
            </div>
            <div class="form-group">
                <label class="col-md-2 control-label">测试环境</label>
                <div class="col-md-4 col-lg-2">
                    <select name="host" class="form-control">
                        <option value="" selected>请选择测试环境</option>
                        {% for host in params.hosts %}
                        <option value="{{host.ip[:-1]}}4">{{host.ip}}</option>
                        {% end %}
                    </select>
                </div>
            </div>
            <div class="form-group">
                <div class="col-md-offset-2 col-md-1">
                    <input type="hidden" value="loan" name="act">
                    <input type="button" data-act="loan" value="提交" class="submit form-control btn btn-primary">
                </div>
            </div>
        </form>
    </div>
    <div role="tabpanel" class="tab-pane active" id="single">
        <form class="form-horizontal single" action="/admin/plugin/product_data" method="post" accept-charset="utf-8">
            {% raw xsrf_form_html() %}
            <div class="form-group">
                <label class="col-md-2 control-label" for="single-type1">资产类型</label>
                <div class="col-md-4 col-lg-2">
                    <label class="radio-inline">
                      <input type="radio" name="type" id="single-type1" value="0" checked> 个人
                    </label>
                    <label class="radio-inline">
                      <input type="radio" name="type" id="single-type2" value="1"> 企业
                    </label>
                </div>
            </div>
            <div class="form-group">
                <label class="col-md-2 control-label" for="loan_type1">是否存管</label>
                <div class="col-md-4 col-lg-2">
                    <label class="radio-inline">
                      <input type="radio" name="loan_type" id="loan_type1" value="0" checked> 存管标
                    </label>
                    <label class="radio-inline">
                      <input type="radio" name="loan_type" id="loan_type2" value="1"> 非存管标
                    </label>
                </div>
            </div>
            <div class="form-group">
                <label class="col-md-2 control-label" for="single-count">个数</label>
                <div class="col-md-2 col-lg-1">
                    <input id="single-count" name="count" value="1" type="number" class="form-control"
                           placeholder="1" min="1" max="100" step="1">
                </div>
            </div>
            <div class="form-group">
                <label class="col-md-2 control-label" for="single-amount">金额(元)</label>
                <div class="col-md-2 col-lg-1">
                    <input id="single-amount" name="amount" value="10000" type="text" class="form-control">
                </div>
            </div>
            <div class="form-group">
                <label class="col-md-2 control-label" for="single-term">期限</label>
                <div class="col-md-1 col-lg-1">
                    <input id="single-term" name="term" value="12" type="text" class="form-control">
                </div>
                <div class="col-md-1 col-lg-1">
                    <select id="single-termMode" name="termMode" class="form-control">
                        <option value="1">天</option>
                        <option value="2" selected>月</option>
                        <option value="3">年</option>
                    </select>
                </div>
            </div>
            <div class="form-group">
                <label class="col-md-2 control-label" for="single-annualRate">利率(%)</label>
                <div class="col-md-2 col-lg-1">
                    <input id="single-annualRate" name="annualRate" value="10.00" type="text" class="form-control">
                </div>
            </div>
            <div class="form-group">
                <label class="col-md-2 control-label" for="single-repayment">还款方式</label>
                <div class="col-md-4 col-lg-2">
                    <select id="single-repayment" name="repayment" class="form-control">
                      <option value="0">一次性还款</option>
                      <option value="1">等额本息</option>
                      <option value="2">等额本金</option>
                      <option value="3">先息后本</option>
                      <option value="4">等额本息N-1</option>
                      <option value="5">每月还本付息</option>
                      <option value="6">按期还本息</option>
                      <option value="7">等额本息A1</option>
                      <option value="8">贺氏等额本息</option>
                    </select>
                </div>
            </div>
            <div class="form-group">
                <label class="col-md-2 control-label" for="single-transfer1">是否可转</label>
                <div class="col-md-4 col-lg-2">
                    <label class="radio-inline">
                      <input type="radio" name="transfer" id="single-transfer1" value="1" checked> 是
                    </label>
                    <label class="radio-inline">
                      <input type="radio" name="transfer" id="single-transfer2" value="0"> 否
                    </label>
                </div>
            </div>
            <div class="form-group">
                <label class="col-md-2 control-label">测试环境</label>
                <div class="col-md-4 col-lg-2">
                    <select name="host" class="form-control">
                        <option value="" selected>请选择测试环境</option>
                        {% for host in params.hosts %}
                        <option value="{{host.ip[:-1]}}4">{{host.ip}}</option>
                        {% end %}
                    </select>
                </div>
            </div>
            <div class="form-group">
                <div class="col-md-offset-2 col-md-1">
                    <input type="hidden" value="single" name="act">
                    <input type="button" data-act="single" value="提交" class="submit form-control btn btn-primary">
                </div>
            </div>
        </form>
    </div>
    <div role="tabpanel" class="tab-pane" id="awt">安稳投</div>
    <div role="tabpanel" class="tab-pane" id="yxn">月续牛</div>
    <div role="tabpanel" class="tab-pane" id="be-code">
        <form class="form-horizontal be-code" action="/admin/plugin/product_data" method="post" accept-charset="utf-8">
            {% raw xsrf_form_html() %}
            <div class="form-group">
                <label class="col-md-2 control-label" >测试环境</label>
                <div class="col-md-4 col-lg-2">
                    <select name="host" class="form-control">
                        <option value="" selected>请选择测试环境</option>
                        {% for host in params.hosts %}
                        <option value="{{host.ip[:-1]}}4">{{host.ip}}</option>
                        {% end %}
                    </select>
                </div>
            </div>
            <div class="form-group">
                <div class="col-md-offset-2 col-md-1">
                    <input type="hidden" value="be-code" name="act">
                    <input type="button" data-act="be-code" value="提交" class="submit form-control btn btn-primary">
                </div>
            </div>
        </form>
    </div>
      <div role="tabpanel" class="tab-pane" id="be-admin">
        <form class="form-horizontal be-admin" action="/admin/plugin/product_data" method="post" accept-charset="utf-8">
            {% raw xsrf_form_html() %}
            <div class="form-group">
                <label class="col-md-2 control-label" >测试环境</label>
                <div class="col-md-4 col-lg-2">
                    <select name="host" class="form-control">
                        <option value="" selected>请选择测试环境</option>
                        {% for host in params.hosts %}
                        <option value="{{host.ip[:-1]}}4">{{host.ip}}</option>
                        {% end %}
                    </select>
                </div>
            </div>
            <div class="form-group">
                <div class="col-md-offset-2 col-md-1">
                    <input type="hidden" value="be-admin" name="act">
                    <input type="button" data-act="be-admin" value="提交" class="submit form-control btn btn-primary">
                </div>
            </div>
        </form>
    </div>
  </div>
    <div class="col-md-offset-2 col-md-8" style="background-color: #5bc0de;color: #fff;min-height:0">
        <span class="container sr-only" style="font-size:14px;max-width:100%;overflow-wrap: break-word;" id="msg"></span>
    </div>
</div>
<div class="container-fluid well sr-only" id="test-logs" style="margin-top:50px;background-color: #5f5f5f;color: #fff;max-height: 600px;width:100%;overflow-y: scroll;overflow-wrap: break-word;">
</div>